package com.ice.crm.activity.mapper;

import com.ice.crm.activity.model.Activity;

import java.util.List;
import java.util.Map;

public interface ActivityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    Integer selectCountByUserId(Integer userId, String name, String ownerName, String startDate, String endDate);

    List<Map> selectActivityByUserId(Integer userId, Integer skipNum, Integer pageSize, String name, String ownerName, String startDate, String endDate);

    void updateByActivityId(Integer activityIds, int status);
}